<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
  <script type="text/javascript">
  function disp_alert(){
     alert("testdddd"+'\n'+"asdfsa")
  }
  function show_confirm(){
	  var r=confirm("press a button");
	  if(r==true){
		  alert("you press Ok")
		  }    
    else {
		alert("you press cancel")
	}
  }
  function disp_prompt(){
	  var name=prompt("please input yourname","William.xiao");
	  document.write("Hello "+name);
  }
  function myfunctiion(){
	  alert("Hello 你好！");
  }
  function myfunctiona(txt){
	  alert("Hello "+txt);
  }
  function returnFunction(txt){
	  return ("Hello "+txt+" 祝您愉快");
  }
  function add(a,b){
	  return a+b;
  }
  </script>
 </head>
 <body>
  <input type="button" onclick="disp_alert()" value="显示警告框"> 
    <input type="button" onclick="show_confirm()" value="显示确认框"> 
	<input type="button" onclick="disp_prompt()" value="显示提示框">
    <input type="button" onclick="myfunctiion()" value="点我看看"><br>
	<input type="button" onclick="myfunctiona('早上好')" value="morning"><br>
	<input type="button" onclick="myfunctiona('晚上好')" value="night">
	<script type="text/javascript">
	document.write(returnFunction("william"));
	document.write("<br>"+add(3,4));
	</script>
 </body>
</html>
